package com.meisiabc.app.repository.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 系统用户表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Admin {


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uniqueid;

    /**
     * 登录名
     */
    private String uname;

    private String password;

    /**
     * 真实名字
     */
    private String name;

    /**
     * 状态
     */
    private Integer state;

    /**
     * 所属角色
     */
    private String role;

    /**
     * Email
     */
    @TableField("Email")
    private String Email;

    /**
     * 基本工资
     */
    private BigDecimal baseSalary;

    /**
     * 工龄工资
     */
    private BigDecimal workingSalary;

    /**
     * 社保个人承担
     */
    private BigDecimal selfSocialFee;

    /**
     * 社保单位承担
     */
    private BigDecimal companySocialFee;

    /**
     * 外教费用
     */
    private BigDecimal foreignFee;

    /**
     * 上次登陆ip
     */
    private String lastIp;

    /**
     * 上次登陆时间
     */
    private Date loginTime;

    private Integer isDelete;


}
